package app.netant.book.sfw36;

import cn.lily.com.enviroment.Enviroment;
import app.netant.book.base.BaseDetail;
import app.netant.book.base.BaseEntity;
import app.netant.book.base.BasePage;
import app.netant.book.base.BaseRoot;

public class Sfw36Root extends BaseRoot {
	
	public Sfw36Root(){
		this.homeUrl = "http://www.36sfw.com/xuanhuan/";
		this.pageUrl = "http://www.36sfw.com/xuanhuan/";
		this.tableKey = "sfw36";
	}

	@Override
	public String buildUrl(int pageIdx) {
		return this.pageUrl + pageIdx+"/";
	}

	@Override
	public BasePage buildPage(String url) {
		return new Sfw36Page(url);
	}

	@Override
	public BaseDetail buildDetail(String url) {
		return new Sfw36Detail(url);
	}

	@Override
	public BaseEntity buildEntity() {
		return new Sfw36Entity();
	}
	
	@Override
	public void afterEntity(BaseEntity entity) {
		
	}
	
	public static void main(String[] args) {
		
		Enviroment.createEnv();
		Enviroment.getEnv().getLogBean().beginLog();
		
		Sfw36Root root = new Sfw36Root();
		root.analyse(1077);
		//root.excepCycle();
	}


	
}
